﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Danser_Entity.Entities
{
    /// <summary>
    /// holds information about the result of uploading a file to the DB
    /// </summary>
    public class ValidationResult
    {
        /// <summary>
        /// string - path to file on the client side
        /// </summary>
        public String _fileName;
        /// <summary>
        /// bool - true if file has been imported to the DB
        /// </summary>
        public bool _isUploaded;
        /// <summary>
        /// string - explanation for the file's state
        /// </summary>
        public String _comment;

        #region C'tor
        /// <summary>
        /// creates a ValidationResult instance with the given parameters
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="isUploaded"></param>
        /// <param name="comment"></param>
        public ValidationResult(String fileName, bool isUploaded, String comment)
        {
            this._fileName = fileName;
            this._isUploaded = isUploaded;
            this._comment = comment;
        }
        #endregion
    }
}
